from conn import check_frame_label_col
from tqdm import tqdm


def main():
    cnt = check_frame_label_col.estimated_document_count()

    old_cnt, new_cnt = 0, 0
    iter = check_frame_label_col.find(
        {}, {"judging_standard": 1, "annotate_type": 1, "frame_ids": 1}
    )
    for item in tqdm(iter, total=cnt):
        if item.get("judging_standard") is None or item.get("annotate_type") is None:
            continue
        if len(item.get("frame_ids", [])) != 1:
            print(item["_id"])


if __name__ == "__main__":
    main()
